home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '88 / Other stuff / CLIP stuff / CLIP headers / clip.h next >
Encoding:
C/C++ Source or Header  |  1986-03-24  |  3.0 KB  |  85 lines  |  [TEXT/FstE]

  1. /*  Copyright (c)   Mar, 1986   UMMC.  All rights reserved
  2.  
  3. Filename:       clip.h
  4.  
  5. Abstract:       This file contains all structure and parameter definitions relevant to the CLIP
  6.             programming environment except the error code definitions.
  7.  
  8. Environment:    UM/CLIP
  9.  
  10. Revision History:
  11.     Rev #      Date    Auth     Reason
  12.     -----   ---------  -----    ----------------------------------
  13.     0.0     13-mar-86   js      original implementation
  14.     0.1     19-mar-86   daf     remove boolean, true, false definitions
  15.     0.2     24-mar-86   js      defined Pi
  16. =========================================================================*/
  17.  
  18. /* define system wide values */
  19.  
  20. #define     Pi      3.1415926535
  21.  
  22. /* define C-arm structure */
  23.  
  24. struct c_arm
  25.     {
  26.     INT     radius;     /* radius of C-arm in cm */
  27.     INT     alpha;      /* current angle alpha of C-arm angulation in degrees*/
  28.     INT     maxalpha;       /* upper limit on alpha */
  29.     INT     minalpha;       /* lower limit on alpha */
  30.     INT     beta;           /* current angle beta of C-arm angulations in degrees */
  31.     INT     maxbeta;        /* upper limit on beta */
  32.     INT     minbeta;        /* lower limit on beta */
  33.     INT     sd;         /* source-detector distance in cm */
  34.     INT     maxsd;      /* maximum sd */
  35.     INT     minsd;      /* minimum sd */
  36.     INT     so;         /* source-object (focal spot) distance in cm */
  37.     INT     od;         /* object-detector distance in cm */
  38.     INT     maxod;      /* maximum od */
  39.     INT     minod;      /* minimum od */
  40.     FLOAT   iirad;          /* radius of image intensifier in cm */
  41.     FLOAT   psi;            /* solid angle of X-ray cone beam in steradians */
  42.     FLOAT   magfact;        /* magnification factor at iso-center */
  43.     };
  44. typedef struct c_arm c_arm;
  45.  
  46.  
  47. /* define imaging chain structure */
  48.  
  49. struct ichain
  50.     {
  51.     /* just a stub for now */
  52.     INT     stub;
  53.     };
  54. typedef struct ichain ichain;
  55.  
  56.  
  57. /* define table structure */
  58.  
  59. struct table
  60.     {
  61.     INT     x;          /* x position of reference point on table relative to iso-center in cm */
  62.     INT     y;          /* y position of reference point */
  63.     INT     z;          /* z position of reference point */
  64.     INT     zdisp;      /* vertical displacement of cylindrical model of table/patient in cm */
  65.     INT     radius;     /* radius of cylindrical model in cm */
  66.     INT     length;     /* length of cylindrical model in cm */
  67.     };
  68. typedef struct table table;
  69.  
  70.  
  71.  
  72. /* define gantry structure */
  73.  
  74. struct gantry
  75.     {
  76.     c_arm   *ap;            /* pointer to AP C-arm structure */
  77.     c_arm   *lat;       /* pointer to LAT C-arm structure */
  78.     ichain  *apich;     /* pointer to AP imaging chain structure */
  79.     ichain  *latich;        /* pointer to LAT imaging chain structure */
  80.     int     park;       /* parked/in use switch for LAT C-arm */
  81.     int     locked;     /* locked/independent switch for C-arms */
  82.     table       *tab;       /* pointer to table structure */
  83.     };
  84. typedef struct gantry gantry;
  85.